﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Web;
using System.Web.Mvc;
using SportsStore.WebUI.Models;

namespace SportsStore.WebUI.HtmlHelpers
{
    public static class NewPagingHelper
    {
        public static MvcHtmlString NewPageLink(this HtmlHelper html, PagingInfo pagingInfo, Func<int, string> pageUrl)
        {
            StringBuilder result = new StringBuilder();
            TagBuilder summary = new TagBuilder("text");
            summary.AddCssClass("currentPage");
            summary.InnerHtml = pagingInfo.CurrentPage.ToString();

            return MvcHtmlString.Create(result.ToString());
        }
    }
}